package cn.wolfcode.crm.mapper;

import cn.wolfcode.crm.domain.Recruit;
import cn.wolfcode.crm.query.RecruitQueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RecruitMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Recruit record);

    Recruit selectByPrimaryKey(Long id);

    List<Recruit> selectAll();

    int updateByPrimaryKey(Recruit record);

    /**
     * 分页
     * @param qo 查询参数
     */
    int queryForCount(RecruitQueryObject qo);

    List<Recruit> queryForList(RecruitQueryObject qo);

    void audit(@Param("id") Long id, @Param("username") String username);
}